<link rel="stylesheet" type="text/css" href="css/feedback.css"/>

<!--案件进程详情-->
<div class="bigBody  clearfix wt-scroll" style="width: 100%;height:100%;overflow:scroll">
  <ul id="sortable" class="CaseDrag clearfix" style="height: 100%;">
    <li class="wt pull-left" ng-repeat="allList in bigList" ng-init="parentInex= $index">
      <div class="header" ng-hide="allList.showStage">
        <p>{{allList.name}}</p>
        <i class="icon iconfont icon-gongneng pull-right dropdown-toggle"  data-toggle="dropdown" aria-expanded="true"></i>
        <div class="editStage" role="menu" aria-labelledby="dropdownMenu1" ng-hide="typeIf==7">
          <div class="editStageTitle tc">阶段菜单 <span class="pull-right"><i class="icon iconfont icon-quxiao"></i></span></div>
          <p class="stageRename"  ng-click="editStageShow(allList)"><span><i class="icon iconfont icon-bianji1"></i></span>重命名</p>
          <p data-toggle="modal" ng-click="deleteCaseStage(allList,$index)"><span><i class="icon iconfont icon-shanchu" style="font-size: 16px"></i></span>删除</p>
        </div>
      </div>
      <div class="addStage" ng-show="allList.showStage">
        <form class="w5c-form" role="form" w5c-form-validate="validateOptions" novalidate name="addStageForm1">
          <input type="text" class="fy-input" required name="allListName" ng-model="allList.name" >
          <div>
            <button type="button" class="fy-btn cancel" ng-click="editStageHide(allList)">取消</button>
            <button type="button" class="btn fy-btn determine" w5c-form-submit="updateCaseStage(allList)">确定</button>
          </div>
        </form>
      </div>
      <div class="body jsbody" >
         <div class="rongqi" id="{{allList.id}}">
           <ul  class="g-wrapper wt-scroll" index="{{parentInex}}" style="overflow-x: hidden; overflow-y: auto; position: relative;min-height: 35px;" ng-sortable="panelConf"><!--ng-sortable="panelConf"-->
            <li ng-init="list.taskType = 1;" ng-repeat="list in allList.taskJsonList track by $index" id="{{list.task.id}} ">
                <input class="checkBoxClick" type="checkbox" ng-show="list.task.status == '0'" ng-hide="typeIf==7"
                       ng-click="throthTheP($event,list.task.id,list.task.title,list.task.caseid)" /><!-- ng-if="type!=7" -->
                <input class="checkBoxClick" type="checkbox" checked ng-show="typeIf!=7&&list.task.status == '1'"
                       ng-click="throthTheP($event,list.task.id,list.task.title,list.task.caseid)" /><!--type!=7 ||--><!--ng-if="type!=7"-->
                <div  style="background: #fff;" ng-show="allList.taskJsonList.length>0" class="boxRight clearfix" ng-init="parentInex" ><!--caseDetailShow(list.id)--><!--ng-click="showDetailBox(list,null,$parent.$index,$index,$event)"-->
                  <div class="d-closeSiblings" fy-task-detail  detail="allList.taskJsonList[$index]" parent-list="allList.taskJsonList" current="{{$index}}" style="position:fixed;z-index: 1040;display: none;top:0;right:-700px;"></div>
                  <div class="my-handle" style="display: block; height:62px">
                    <p class="caseDetailShow" ng-show="list.task.status == '0'" >{{list.task.title}}</p>
                    <!--<p class="caseDetailShow" ng-show="list.status == '0'">{{allList.taskList[$index].title}}</p>-->
                    <!--<p class="caseDetailShow" ng-show="list.status == '0'" >{{parentInex}}</p>-->
                    <p class="caseDetailShow" style="text-decoration:line-through;color:#00BB9C;" ng-show="list.task.status == '1'">{{list.task.title}}</p>
                    <div class="zqSomeTime">
                      <img src="../../img/shjian.png" alt="" ng-show="list.task.deadline">
                      <span>{{list.task.deadline}}</span>
                      <img ng-show="list.caseTaskReviews.length" src="img/message.png" alt="">
                      <!--<span ng-show="list.commentsNum">{{list.commentsNum}}</span>-->
                      <img src="img/biezhen.png" alt=""  ng-show="list.caseTaskAttses.length">
                      <!--<span  ng-show="list.attrsNum">{{list.attrsNum}}</span>-->
                      <!--<img src="../../img/y-icon18.png" alt=""  ng-show="list.attrsNum">-->
                      <!--<img src="../../img/y-icon47.png" alt="" ng-show="list.attrsNum">-->
                      <span  ng-show="list.caseTaskAttses.length">{{list.caseTaskAttses.length}}</span>
                      <img src="../../img/y-icon18.png" alt="" ng-show="list.caseTaskCheckList.length!= 0">
                      <span  ng-show="list.caseTaskCheckList.length!= 0">{{list.caseTaskCheckList.length}}</span>
                      <!--<img src="../../img/y-icon48.png" alt="">-->
                    </div>
                    <div class="clearfix g-imgRight" style="padding-right: 17px; padding-bottom: 10px;">
                      <img class="zqImg pull-right" ng-src="{{img.executor.iconUrl}}" alt="" ng-repeat="img in list.taskExecutors" style="margin-left: 7px;">
                    </div>
                  </div>
                  </div>

            </li>
            <!--<ul id="{{allList.stageId}}">-->
            <!--<li style="width: 200px;height: 30px">-->
            <!--</li>-->
            <!--</ul>-->
           </ul>

           <!--点击新建新建-->
           <div class="newTa zqNewGreat" style="margin-bottom:0; min-height: 100px;">
             <div class="rongqi">
               <textarea maxlength="200" ng-click="getFireFocus()" class="getFireFocus" name="MSG" placeholder="要新建一个任务" cols=40 rows=3 ng-model="addTaskInput1" ng-class={addTaskInputBorder:addTaskInputBo}></textarea>
               <button class="save" ng-click="addTask(allList,addTaskInput1)">保 存</button>
               <button class="cancel" ng-click="addCancelBtn($event)">取 消</button>
             </div>
           </div>
           <div ng-hide="typeIf==7" class="newAdd"><!--ng-show="type != 7" -->
             <i class="icon iconfont icon-tianjia"  ng-click="showAddBox($event)"></i>
             <span ng-click="showAddBox($event)">新增</span>
           </div>
         </div>


      </div>
    </li>
    <li  class="wt pull-left addStageAll">
      <div class="header headerLast">
        <p class="addHeader" ng-click="addStageNew()"><i class="icon iconfont icon-tianjia"></i>新增阶段
        </p>
      </div>
      <div class="addStage" style="display: none">
        <form class="w5c-form" role="form" w5c-form-validate="validateOptions" novalidate name="addStageForm">
          <input type="text" class="fy-input" ng-attr-autofocus="true" required name="caseStageName" ng-model="caseStageName" placeholder="阶段名称" maxlength="15">
          <div>
            <button type="button" class="fy-btn cancel" ng-click="addStageNewCancel()">取消</button>
            <button type="button" class="btn fy-btn determine" w5c-form-submit="createCaseStage()">确定</button>
          </div>
        </form>
      </div>
    </li>
  </ul>
</div>

<!--删除阶段提示框-->



<script>
  /*设置屏幕高度*/
  (function () {
    setHeight();
    function setHeight() {
      var height = $(window).height()-266 + 'px';
      var bigeight = $(window).height()-140 + 'px';
      $(".g-wrapper").css("max-height",height);
      $(".bigBody").css("min-height",bigeight);
    };
    $(window).resize(function() {
      setHeight();
    });
  }())
</script>
